package com.tech.zhidengxian.controller;

import org.springframework.http.HttpRequest;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import java.util.Map;

@RestController
@RequestMapping("/test")
public class TestController {

    @RequestMapping("/fileTest")
    public String fileTest(@RequestHeader Map<String, String> headers, MultipartFile smfile){
        System.out.println(headers.toString());
        return "123";
    }
}
